package DomainP

class User {
    String name
    String login
    String password
 
    static hasMany = [trips: Trip]
    
    
    String toString(){
        "${name}"
    }

    static constraints = {
        name blank:false, size: 3..15
        login blank:false, size: 3..15
        password blank:false, size: 6..15
    }
}
